@layout("/common/_container.html",{js:["/assets/modular/system/advert/advert.js"]}){

<style>
.layui-table-cell{
	height:auto!important;
	white-space: normal;
}
</style>
<div class="layui-body-header">
    <span class="layui-body-header-title">广告管理</span>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="nickname" class="layui-input" type="text" placeholder="微信名称"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                @if(shiro.hasPermission("/advert/add")){
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                @}
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="advertTable" lay-filter="advertTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="imgTpl">
	<img style="width:100px;height:100px" src="{{ d.url }}">
</script>
<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/advert/del")){
    	<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="del">删除</a>
    @}
</script>
@}